package cz.tomasdvorak.cars.wicket.components.table;

import org.apache.wicket.extensions.markup.html.repeater.data.table.NavigationToolbar;
import org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable;
import org.apache.wicket.markup.html.navigation.paging.PagingNavigator;

public class StyledNavigationToolbar extends NavigationToolbar {
    public StyledNavigationToolbar(DataTable table) {
        super(table);
    }

    @Override
    protected PagingNavigator newPagingNavigator(String navigatorId, DataTable table) {
        return new StyledPagingNavigator(navigatorId, table);
    }

    @Override
    public boolean isVisible() {
        // always visible
        return true;
    }
}
